
export const DynamicList = {
	list: {
		type: 'rule',
		label: '列表',
		value: ''
	},
	filter: {
		type: 'rule',
		label: '列表筛选',
		value: ''
	}
}

//页面样式结构
export const PageStyle = {
	navigationTitle: {
		type: 'text',
		label: '导航栏标题',
		value: ''
	},//导航栏标题
	navigationTextColor: {
		type: 'color',
		label: '导航栏标题颜色',
		value: ''
	},//导航栏文字颜色
	navigationCapsuleStyle: {
		type: ['auto', 'light', 'dark'],
		label: '胶囊按钮样式',
		value: 'auto'
	},//胶囊按钮样式
	navigationBackground: {
		type: 'back',
		label: '导航栏背景（支持颜色和网络图片）',
		value: ''
	},//导航栏背景支持网络图片路径
	navigationBackgroundOpacity: {
		type: '0-1',
		label: '导航栏背景色透明度',
		value: 1
	},//导航栏背景色透明度
	enableNavigationTransparent: {
		type: 'boolean',
		label: '开启导航栏背景透明',
		value: 0
	},//开启导航栏背景透明，滚动渐变显示
	enableNavigationSearchInput: {
		type: 'boolean',
		label: '开启导航栏搜索框',
		value: 0
	},//开启导航栏搜索框
	enableNavigationCapsuleBorder: {
		type: 'boolean',
		label: '开启胶囊按钮边框',
		value: 0
	},//开启胶囊按钮边框
	navigationSearchInputUrl: {
		type: 'url',
		label: '导航栏搜索框链接（支持应用页面名称和网页链接）',
		value: ''
	},//导航栏搜索框链接
	navigationInputBackgroundColor: {
		type: 'color',
		label: '导航栏搜索框背景色',
		value: ''
	},//导航栏搜索框背景色
	navigationInputTextColor: {
		type: 'color',
		label: '导航栏搜索框文字颜色',
		value: ''
	},//导航栏搜索框文字颜色
	enablePulldown: {
		type: 'boolean',
		label: '开启下拉刷新',
		value: 0
	},//开启下拉刷新
	enableLoadmore: {
		type: 'boolean',
		label: '开启上拉加载更多',
		value: 0
	},//开启上拉加载更多
	enableBackTop: {
		type: 'boolean',
		label: '开启返回顶部按钮',
		value: 0
	},//开启返回顶部按钮
	enableBounce: {
		type: 'boolean',
		label: '开启页面回弹',
		value: 0
	},//开启页面回弹
	enableSwiper: {
		type: 'boolean',
		label: '开启左右滑动（仅支持部分类型页面）',
		value: 0
	},//开启左右滑动（仅支持部分类型页面）
	enableSearch: {
		type: 'boolean',
		label: '开启搜索（仅支持部分类型页面）',
		value: 0
	},//开启搜索（仅支持部分类型页面）
	enableSearchFirstLoad: {
		type: 'boolean',
		label: '开启搜索后第一次进入页面是否加载除选项栏外的数据（仅在开启搜索后有效）',
		value: 0
	},//开启搜索后第一次进入页面是否加载除选项栏外的数据（仅在开启搜索后有效）
	enableTopGap: {
		type: 'boolean',
		label: '开启顶部间隔',
		value: 0
	},//开启顶部间隔
	enableFilterIcon: {
		type: 'boolean',
		label: '强制开启筛选页面的筛选图标',
		value: 0
	},//强制开启筛选页面的筛选图标
	backTopImage: {
		type: 'image',
		label: '自定义返回按钮网络图片路径',
		value: ''
	},//自定义返回按钮网络图片路径
	pulldownRefreshImage: {
		type: 'image',
		label: '自定义下拉刷新图片网络路径',
		value: ''
	},//自定义下拉刷新图片网络路径
	background: {
		type: 'back',
		label: '页面背景（支持颜色和网络图片）',
		value: ''
	},//页面背景色
	backgroundBlur: {
		type: 'number',
		label: '背景色高斯模糊',
		value: 10
	},//背景色高斯模糊
	pageMarginGap: {
		type: 'number',
		label: '页面边距',
		value: 20
	},//页面边距
	componentBackgroundOpacity: {
		type: '0-1',
		label: '组件背景透明度',
		value: 1
	},//组件背景透明度
	componentBorderRadius: {
		type: 'number',
		label: '组件圆角',
		value: 20
	},//组件圆角
	componentStyle: {
		type: 'object',
		label: '组件公共样式',
		value: ''
	},//组件公共样式
	cellStyle: {
		type: 'object',
		label: '列表公共样式',
		value: ''
	},//列表公共样式
	subsectionMainIndex: {
		type: 'number',
		label: '多个选项栏索引',
		value: 0
	},//多个选项栏索引
	subsectionColumn: {
		type: 'auto',
		label: '选项栏列数（支持auto/和任意整数）',
		value: 'auto'
	},//选项栏栏数
	subsectionFilterColumn: {
		type: 'auto',
		label: '选项栏面板列数（支持auto/和任意整数）',
		value: 4
	},//选项栏面板栏数
	coverWidth: {
		type: 'number',
		label: '封面宽度（仅支持资源页）',
		value: 171
	},//封面宽度（仅支持资源页（比如小说，漫画详情页等））
	coverHeight: {
		type: 'number',
		label: '封面高度（仅支持资源页）',
		value: 242
	},//封面高度（仅支持资源页（比如小说，漫画详情页等））
	coverMode: {
		type: ['aspectFill', 'aspectFit', 'widthFix', 'heightFix', 'scaleToFill', 'top', 'bottom', 'center', 'left', 'right', 'top left', 'top right', 'bottom left', 'bottom right'],
		label: '封面裁剪模式（仅支持资源页）',
		value: 'aspectFill'
	},//封面裁剪模式
	coverBorderRadius: {
		type: 'number',
		label: '封面圆角（仅支持资源页）',
		value: 15
	},//封面圆角（仅支持资源页（比如小说，漫画详情页等））
	subsectionBackgroundColor: {
		type: 'color',
		label: '选项栏背景色（仅支持部分类型页面）',
		value: ''
	},//选项栏背景色
	subsectionSelectedColor: {
		type: 'color',
		label: '选项栏选中高亮色（仅支持部分类型页面）',
		value: ''
	},//选项栏选中高亮色
	loadingColor: {
		type: 'color',
		label: '加载图标颜色',
		value: ''
	},//加载颜色
	themeColor: {
		type: 'color',
		label: '主题色',
		value: ''
	}//主题色
}


//请求结构
export const Request = {
	url: {
		type: 'text',
		label: '请求链接',
		value: ''
	},
	nextUrl: {
		type: 'rule',
		label: '下一页请求链接（特殊需求，填入规则获取）',
		value: ''
	},
	params: {
		type: 'object',
		label: '请求参数（值为对象，例如：{"p": 1, "s": 2}，key一定要加上引号，否则无法转化为对象）',
		value: ''
	},
	header: {
		type: 'object',
		label: '请求头（值为对象，例如：{"p": 1, "s": 2}，key一定要加上引号，否则无法转化为对象）',
		value: ''
	},
	method: {
		type: ['get', 'post', 'postget'],
		label: '请求方式',
		value: 'get'
	},
	timeout: {
		type: 'number',
		label: '请求超时时间',
		value: 10000
	},
	device: {
		type: ['手机', '电脑'],
		label: '请求设备',
		value: '电脑'
	},
	charset: {
		type: ['utf-8', 'gbk'],
		label: '请求格式',
		value: 'utf-8'
	},
	response: {
		type: 'rule',
		label: '预处理规则（预先处理一下获取的内容）',
		value: ''
	},
	cacheEfficiency: {
		type: 'number',
		label: '请求内容缓存有效时间',
		value: 10000
	},
	webview: {
		type: 'boolean',
		label: '是否开启webview获取内容',
		value: 0
	},
	delay: {
		type: 'number',
		label: '开启webview后延迟多少ms获取内容',
		value: 1000
	},
	visits: {
		type: 'number',
		label: '开启webview后中转几次开始获取内容',
		value: 1
	}
}

//源文件基础结构
export const Base = {
	id: {
		type: 'text',
		label: '应用ID',
		value: '',
		required: 1
	},
	name: {
		type: 'text',
		label: '应用名称',
		value: '',
		required: 1
	},
	type: {
		type: 'text',
		label: '应用类型',
		value: '',
		required: 1
	},
	creator: {
		type: 'text',
		label: '应用创建者',
		value: '',
		required: 1
	},
	versionCode: {
		type: 'number',
		label: '应用版本号',
		value: 100,
		required: 1
	},
	versionName: {
		type: 'text',
		label: '应用版本名称',
		value: '1.0.0',
		required: 1
	},
	href: {
		type: 'text',
		label: '应用链接',
		value: '',
		required: 1
	},
	logo: {
		type: 'icon',
		label: '应用LOGO',
		value: '',
		required: 1
	},
	themeColor: {
		type: 'color',
		label: '应用主题色',
		value: '',
		required: 1
	},
	cacheEfficiency: {
		type: 'number',
		label: '请求缓存有效时间',
		value: 10000,
		required: 1
	},
	isAdult: {
		type: 'boolean',
		label: '是否敏感内容',
		value: 0,
		required: 1
	},
	description: {
		type: 'textarea',
		label: '应用简介',
		value: 0,
		required: 1
	},
	globalData: {
		type: 'object',
		label: '公共变量（例如：{"p": 1, "s": 2}，key一定要加上引号，否则无法转化为对象）',
		value: '',
		required: 0
	}
}

//动态链接
export const Dynamic = {...Request, result: {type: 'rule', label: '返回链接规则', value: '', required: 1}}


//底部导航栏结构
export const Tabbar = {
	style: {
		background: {
			type: 'back',
			label: '底部导航栏背景（支持颜色和网络图片）',
			value: ''
		},
		backgroundOpacity: {
			type: '0-1',
			label: '底部导航栏背景透明度',
			value: 1
		},
		color: {
			type: 'color',
			label: '默认颜色',
			value: ''
		},
		selectedColor: {
			type: 'color',
			label: '选中高亮颜色',
			value: ''
		}
	},
	data: {
		name: {
			type: 'text',
			label: '页面名称（用于页面跳转）',
			value: '',
			required: 1
		},//页面名称
		text: {
			type: 'text',
			label: '导航文字',
			value: '',
			required: 1
		},//导航文字
		icon: {
			type: 'icon',
			label: '默认图标',
			value: ''
		},//默认图标
		selectedIcon: {
			type: 'icon',
			label: '选中图标',
			value: ''
		}//选中图标
	}
}

export const CellData = {
	title: {
		type: 'text',
		label: '标题',
		value: ''
	},
	subtitle: {
		type: 'text',
		label: '二级标题',
		value: ''
	},
	description: {
		type: 'text',
		label: '简介',
		value: ''
	},
	cover: {
		type: 'image',
		label: '封面',
		value: ''
	},
	url: {
		type: 'url',
		label: '路径跳转（支持应用页面和网页链接）',
		value: ''
	},
	images: {
		type: 'array',
		label: '封面集合（可以使用数组[],也可以逗号分隔）',
		value: ''
	}
}

//单元格结构
export const Cell = {
	'h-cell': {
		"label": "横向单元格",
	},
	'v-cell': {
		"label": "竖向单元格",
	},
	'img-cell': {
		"label": "图片单元格"
	},
	'text-cell': {
		"label": "文字单元格"
	},
	'tag-cell': {
		"label": "标签单元格"
	},
	'a-cell': {
		"label": "文章单元格"
	},
	'c-cell': {
		"label": "评论单元格"
	},
	'w-cell': {
		"label": "瀑布流单元格"
	}
}

//单元格样式结构
export const CellStyle = {
	cellName: {
		type: Object.keys(Cell),
		label: '单元格名称',
		value: 'h-cell'
	},
	cellColumn: {
		type: 'number',
		label: '单元格列数',
		value: 3
	},
	cellGap: {
		type: 'number',
		label: '间距',
		value: 30
	},
	cellImageWidth: {
		type: 'number',
		label: '图片宽度',
		value: 120
	},
	cellImageHeight: {
		type: 'number',
		label: '图片高度',
		value: 160
	},
	cellImageBorderRadius: {
		type: 'number',
		label: '图片圆角',
		value: 10
	},
	cellImageTipSize: {
		type: 'number',
		label: '图片提示文字尺寸',
		value: 20
	},
	cellTitleLines: {
		type: 'number',
		label: '标题多行省略',
		value: 1
	},
	cellDescriptionLines: {
		type: 'number',
		label: '简介多行省略',
		value: 3
	}
}


//组件结构
export const Component = {
	'search-input': {
		"label": "搜索框",
		"style": {
			'url': {
				"type": "url",
				"label": "搜索链接（支持应用页面和网页链接）",
				"value": ""
			},
			'placeholder': {
				"type": "text",
				"label": "搜索框提示文字",
				"value": ""
			},
			'borderRadius': {
				"type": "number",
				"label": "搜索框圆角",
				"value": "10"
			},
			'enableSearch': {
				"type": "boolean",
				"label": "开启输入搜索（不开启则仅为搜索页入口）",
				"value": 0
			}
		}
		
	},
	'slider': {
		"label": "轮播图",
		"style": {
			'height': {
				"type": "number",
				"label": "高度",
				"value": 280
			},
			'enableIndicatorDots': {
				"type": "boolean",
				"label": "开启指示点",
				"value": 1
			},
			'indicatorActiveColor': {
				"type": "color",
				"label": "指示点选中色",
				"value": ""
			},
			'titleShow': {
				"type": "boolean",
				"label": "展示轮播图标题",
				"value": 1
			}
		},
		"data": {
			"title": {
				"type": "text",
				"label": "标题",
				"value": ""
			},
			"cover": {
				"type": "image",
				"label": "封面图片",
				"value": ""
			},
			"url": {
				"type": "url",
				"label": "跳转链接（支持应用页面名称和网页链接）",
				"value": ""
			}
		},
		"dynamicData": DynamicList
	},
	'banner': {
		"label": "banner图",
		"style": {
			'height': {
				"type": "number",
				"label": "高度",
				"value": 180
			},
			'borderRadius': {
				"type": "number",
				"label": "圆角",
				"value": 15
			},
			'mode': {
				"type": ['widthFix', 'aspectFit', 'aspectFill', 'heightFix'],
				"label": "图片裁切模式",
				"value": "widthFix"
			}
		},
		"data": {
			"cover": {
				"type": "image",
				"label": "封面图片",
				"value": ""
			},
			"url": {
				"type": "url",
				"label": "跳转链接（支持应用页面名称和网页链接）",
				"value": ""
			}
		}
	},
	'notice-bar': {
		"label": "公告栏",
		"style": {
			'icon': {
				"type": "icon",
				"label": "公告栏图标",
				"value": ""
			},
			'borderRadius': {
				"type": "number",
				"label": "圆角",
				"value": 10
			},
			'moreText': {
				"type": "text",
				"label": "更多按钮文字",
				"value": ""
			},
			'moreUrl': {
				"type": "url",
				"label": "更多跳转路径（支持应用页面和网页链接）",
				"value": ""
			}
		},
		"data": {
			"title": {
				"type": "text",
				"label": "标题",
				"value": ""
			},
			"url": {
				"type": "url",
				"label": "跳转链接（支持应用页面名称和网页链接）",
				"value": ""
			}
		},
		"dynamicData": DynamicList
	},
	'menu': {
		"label": "菜单栏",
		"style": {
			'column': {
				"type": "number",
				"label": "列数",
				"value": 4
			},
			'columnGap': {
				"type": "number",
				"label": "间隔",
				"value": 15
			},
			'borderRadius': {
				"type": "number",
				"label": "圆角",
				"value": 15
			}
		},
		"data": {
			"icon": {
				"type": "icon",
				"label": "图标",
				"value": ""
			},
			"iconColor": {
				"type": "color",
				"label": "图标颜色",
				"value": ""
			},
			"title": {
				"type": "text",
				"label": "标题",
				"value": ""
			},
			"url": {
				"type": "url",
				"label": "跳转链接（支持应用页面名称和网页链接）",
				"value": ""
			}
		},
		"dynamicData": DynamicList
	},
	'link': {
		"label": "链接栏",
		"style": {
			'iconColor': {
				"type": "color",
				"label": "图标颜色",
				"value": ""
			},
			'iconBorderRadius': {
				"type": "number",
				"label": "图标圆角",
				"value": 0
			},
			'borderRadius': {
				"type": "number",
				"label": "圆角",
				"value": 0
			}
		},
		"data": {
			"icon": {
				"type": "icon",
				"label": "图标",
				"value": ""
			},
			"description": {
				"type": "color",
				"label": "简介",
				"value": ""
			},
			"title": {
				"type": "text",
				"label": "标题",
				"value": ""
			},
			"url": {
				"type": "url",
				"label": "跳转链接（支持应用页面名称和网页链接）",
				"value": ""
			}
		}
	},
	'links': {
		"label": "多个链接栏",
		"style": {
			'column': {
				"type": "number",
				"label": "列数",
				"value": 2
			},
			'borderRadius': {
				"type": "number",
				"label": "圆角",
				"value": 0
			}
		},
		"data": {
			"icon": {
				"type": "icon",
				"label": "图标",
				"value": ""
			},
			"iconColor": {
				"type": "color",
				"label": "图标颜色",
				"value": ""
			},
			"title": {
				"type": "text",
				"label": "标题",
				"value": ""
			},
			"url": {
				"type": "url",
				"label": "跳转链接（支持应用页面名称和网页链接）",
				"value": ""
			}
		},
		"dynamicData": DynamicList
	},
	'card': {
		"label": "卡片",
		"style": {
			'cardTitle': {
				"type": "text",
				"label": "卡片标题",
				"value": ""
			},
			'cardIcon': {
				"type": "icon",
				"label": "卡片图标",
				"value": ""
			},
			'cardIconColor': {
				"type": "color",
				"label": "卡片图标颜色",
				"value": ""
			},
			'cardDescription': {
				"type": "text",
				"label": "卡片简介",
				"value": ""
			},
			'enableRefresh': {
				"type": "boolean",
				"label": "开启换一组功能（需要配合cellCount使用，cellCount用来控制每一组的最大数量）",
				"value": 0
			},
			'enableScroll': {
				"type": "boolean",
				"label": "开启滚动功能（需要配合cellWidth使用，cellWidth用来控制每一项的宽度）",
				"value": 0
			},
			'enableTopCard': {
				"type": "boolean",
				"label": "开启顶部单元格",
				"value": 0
			},
			'borderRadius': {
				"type": "number",
				"label": "圆角",
				"value": 0
			},
			'moreText': {
				"type": "text",
				"label": "更多按钮文字",
				"value": ""
			},
			'moreUrl': {
				"type": "url",
				"label": "更多按钮跳转路径（支持应用页面和网页链接）",
				"value": ""
			},
			'topCellName': {
				"type": Object.keys(Cell),
				"label": "顶部单元格名称",
				"value": "h-cell"
			},
			'topCellImageWidth': {
				"type": "number",
				"label": "顶部单元格图片宽度",
				"value": 120
			},
			"topCellImageHeight": {
				"type": "number",
				"label": "顶部卡片图片高度",
				"value": 160
			},
			"topCellImageBorderRadius": {
				"type": "number",
				"label": "顶部卡片图片圆角",
				"value": 10
			},
			"topCellImageTipSize": {
				"type": "number",
				"label": "顶部卡片图片提示文字尺寸",
				"value": 20
			},
			"topCellTitleLines": {
				"type": "number",
				"label": "顶部卡片标题多行省略",
				"value": 1
			},
			"topCellDescriptionLines": {
				"type": "number",
				"label": "顶部卡片简介多行省略",
				"value": 3
			},
			"cellName": {
				"type": Object.keys(Cell),
				"label": "单元格名称",
				"value": "h-cell",
			},
			"cellImageWidth": {
				"type": "number",
				"label": "单元格图片宽度",
				"value": 120
			},
			"cellImageHeight": {
				"type": "number",
				"label": "单元格图片高度",
				"value": 160
			},
			"cellImageBorderRadius": {
				"type": "number",
				"label": "单元格图片圆角",
				"value": 10
			},
			"cellImageTipSize": {
				"type": "number",
				"label": "单元格图片提示文字尺寸",
				"value": 20
			},
			"cellTitleLines": {
				"type": "number",
				"label": "单元格标题多行省略",
				"value": 1
			},
			"cellDescriptionLines": {
				"type": "number",
				"label": "单元格简介多行省略",
				"value": 3
			},
			"cellCount": {
				"type": "auto",
				"label": "单元格总数",
				"value": "auto"
			},
			"cellColumn": {
				"type": "auto",
				"label": "单元格列数",
				"value": 3
			},
			"cellGap": {
				"type": "number",
				"label": "单元格间距",
				"value": 30
			},
			"cellWidth": {
				"type": "number",
				"label": "单项单元格宽度",
				"value": 300
			},
			"subsectionColumn": {
				"type": "auto",
				"label": "分段器列数",
				"value": "auto"
			},
			"subsectionSelectedColor": {
				"type": "color",
				"label": "分段器选中颜色",
				"value": ""
			}
		},
		"data": {
			"title": {
				"type": "text",
				"label": "标题",
				"value": ""
			},
			"subtitle": {
				"type": "text",
				"label": "二级标题",
				"value": ""
			},
			"description": {
				"type": "text",
				"label": "简介",
				"value": ""
			},
			"cover": {
				"type": "image",
				"label": "封面",
				"value": ""
			},
			"url": {
				"type": "url",
				"label": "跳转链接（支持应用页面名称和网页链接）",
				"value": ""
			}
		},
		"dynamicData": DynamicList
	}
}

const BasePageData = {
	name: {
		type: 'text',
		label: '页面名称',
		value: '',
		required: 1
	},
	type: {
		type: 'none',
		label: '页面类型',
		value: '',
		required: 1
	}
}

export const DetailData = {
	title: {
		type: 'text',
		label: '标题',
		value: ''
	},
	cover: {
		type: 'image',
		label: '封面',
		value: ''
	},
	subtitle: {
		type: 'text',
		label: '二级标题',
		value: ''
	},
	description: {
		type: 'textarea',
		label: '简介',
		value: ''
	},
	content: {
		type: 'textarea',
		label: '富文本内容',
		value: ''
	},
	shareUrl: {
		type: 'text',
		label: '分享链接',
		value: ''
	},
	isAdult: {
		type: 'boolean',
		label: '是否敏感内容',
		value: 0
	}
}

export const TagData = {
	title: {
		type: 'text',
		label: '标题',
		value: ''
	},
	url: {
		type: 'url',
		label: '跳转路径(支持应用页面和网页链接)',
		value: ''
	}
}

export const CommentData = {
	title: {
		type: 'text',
		label: '发言标题',
		value: ''
	},
	subtitle: {
		type: 'text',
		label: '二级标题',
		value: ''
	},
	avatar: {
		type: 'image',
		label: '头像',
		value: ''
	},
	content: {
		type: 'text',
		label: '发言内容',
		value: ''
	},
	url: {
		type: 'url',
		label: '跳转路径(支持应用页面和网页链接)',
		value: ''
	}
}

export const Page = {
	module: {
		label: '模块页',
		style: PageStyle,
		data: BasePageData
	},
	filter: {
		label: '筛选页',
		style: PageStyle,
		data: BasePageData,
		subsectionData: {
			label: {
				type: 'text',
				label: '选项标题',
				value: ''
			},
			value: {
				type: 'text',
				label: '选项值',
				value: ''
			}
		},
		dynamicSubsectionData: DynamicList
	},
	column: {
		label: '分栏页',
		style: PageStyle,
		data: BasePageData
	},
	linkage: {
		label: '双向联动页',
		style: PageStyle,
		data: BasePageData,
		subsectionData: {
			label: {
				type: 'text',
				label: '选项标题',
				value: ''
			},
			value: {
				type: 'text',
				label: '选项值',
				value: ''
			}
		},
		dynamicSubsectionData: DynamicList
	},
	short: {
		label: '短视频页',
		style: PageStyle,
		data: BasePageData,
		cellData: {
			title: {
				type: 'text',
				label: '标题',
				value: ''
			},
			subtitle: {
				type: 'text',
				label: '二级标题',
				value: ''
			},
			description: {
				type: 'text',
				label: '简介',
				value: ''
			},
			cover: {
				type: 'image',
				label: '封面',
				value: ''
			},
			src: {
				type: 'src',
				label: '播放链接',
				value: ''
			},
			isLive: {
				type: 'boolean',
				label: '是否直播源',
				value: 0
			},
			isAdult: {
				type: 'boolean',
				label: '是否敏感内容',
				value: 0
			}
		},
		dynamicData: DynamicList
	},
	user: {
		label: '用户页',
		style: PageStyle,
		data: BasePageData,
		detailData: Object.assign({}, DetailData, {
			avatar: {
				type: 'image',
				label: '头像',
				value: ''
			}
		})
	},
	novel: {
		label: '小说详情页',
		style: PageStyle,
		data: BasePageData,
		detailData: DetailData,
		tagData: TagData,
		itemData: {
			title: {
				type: 'text',
				label: '标题',
				value: ''
			},
			content: {
				type: 'text',
				label: '正文内容',
				value: ''
			}
		},
		contextData: {
			title: {
				type: 'text',
				label: '标题',
				value: ''
			},
			content: {
				type: 'text',
				label: '正文内容',
				value: ''
			}
		},
		commentData: CommentData
	},
	comic: {
		label: '漫画详情页',
		style: PageStyle,
		data: BasePageData,
		detailData: DetailData,
		tagData: TagData,
		itemData: {
			title: {
				type: 'text',
				label: '标题',
				value: ''
			},
			content: {
				type: 'text',
				label: '正文内容（图片集合）',
				value: ''
			}
		},
		contextData: {
			title: {
				type: 'text',
				label: '标题',
				value: ''
			},
			content: {
				type: 'text',
				label: '正文内容（图片集合）',
				value: ''
			}
		},
		commentData: CommentData
	},
	article: {
		label: '文章详情页',
		style: PageStyle,
		data: BasePageData,
		detailData: DetailData,
		tagData: TagData,
		commentData: CommentData
	},
	picture: {
		label: '图片详情页',
		style: PageStyle,
		data: BasePageData,
		detailData: DetailData,
		tagData: TagData,
		itemData: {
			title: {
				type: 'text',
				label: '标题',
				value: ''
			},
			cover: {
				type: 'image',
				label: '图片封面',
				value: ''
			},
			src: {
				type: 'text',
				label: '图片链接',
				value: ''
			}
		},
		contextData: {
			title: {
				type: 'text',
				label: '标题',
				value: ''
			},
			cover: {
				type: 'image',
				label: '图片封面',
				value: ''
			},
			src: {
				type: 'text',
				label: '图片链接',
				value: ''
			}
		},
		commentData: CommentData
	},
	video: {
		label: '视频详情页',
		style: PageStyle,
		data: BasePageData,
		detailData: Object.assign({}, DetailData, {
			isLive: {
				type: 'boolean',
				label: '是否直播源',
				value: 0
			},
			type: {
				type: ['auto', 'flv', 'hls', 'video'],
				label: '源文件格式',
				value: 'auto'
			},
			type: {
				type: ['none', '360'],
				label: '3D模式',
				value: 'none'
			}
		}),
		tagData: TagData,
		itemData: {
			title: {
				type: 'text',
				label: '标题',
				value: ''
			},
			cover: {
				type: 'image',
				label: '视频封面',
				value: ''
			},
			isLive: {
				type: 'boolean',
				label: '是否直播源',
				value: 0
			},
			type: {
				type: ['auto', 'flv', 'hls', 'video'],
				label: '源文件格式',
				value: 'auto'
			},
			src: {
				type: 'text',
				label: '视频链接',
				value: ''
			}
		},
		contextData: {
			title: {
				type: 'text',
				label: '标题',
				value: ''
			},
			cover: {
				type: 'image',
				label: '视频封面',
				value: ''
			},
			isLive: {
				type: 'boolean',
				label: '是否直播源',
				value: 0
			},
			type: {
				type: ['auto', 'flv', 'hls', 'video'],
				label: '源文件格式',
				value: 'auto'
			},
			src: {
				type: 'text',
				label: '视频链接',
				value: ''
			}
		},
		commentData: CommentData,
		barrageData: {
			text: {
				type: 'text',
				label: '弹幕内容',
				value: ''
			},
			time: {
				type: 'text',
				label: '弹幕显示时间（单位s）',
				value: ''
			},
			color: {
				type: 'color',
				label: '弹幕颜色',
				value: ''
			}
		}
	},
	audio: {
		label: '音频详情页',
		style: PageStyle,
		data: BasePageData,
		detailData: DetailData,
		tagData: TagData,
		itemData: {
			title: {
				type: 'text',
				label: '标题',
				value: ''
			},
			cover: {
				type: 'image',
				label: '音频封面',
				value: ''
			},
			src: {
				type: 'text',
				label: '音频链接',
				value: ''
			}
		},
		contextData: {
			title: {
				type: 'text',
				label: '标题',
				value: ''
			},
			cover: {
				type: 'image',
				label: '音频封面',
				value: ''
			},
			src: {
				type: 'text',
				label: '音频链接',
				value: ''
			}
		},
		commentData: CommentData,
		lyricData: {
			title: {
				type: 'text',
				label: '歌词',
				value: ''
			},
			time: {
				type: 'text',
				label: '歌词显示时间（单位s）',
				value: ''
			}
		}
	},
	live: {
		label: '直播详情页',
		style: PageStyle,
		data: BasePageData,
		detailData: Object.assign({}, DetailData, {
			src: {
				type: 'text',
				label: '直播链接',
				value: ''
			},
			type: {
				type: ['auto', 'flv', 'hls', 'video'],
				label: '源文件格式',
				value: 'auto'
			}
		}),
		tagData: TagData,
		commentData: CommentData
	}
}